package com.zhangxu.microservice.system.dao.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhangxu.microservice.system.dao.condition.EmployeeCondition;
import com.zhangxu.microservice.system.dao.entity.EmployeeDO;

public interface EmployeeDao extends IService<EmployeeDO> {

    /**
     * 根据用户名查询用户
     *
     * @param account 账户
     * @return 用户信息
     */
    EmployeeDO getByAccount(String account);

    /**
     * 分页查询用户
     *
     * @param condition 查询条件
     * @return 用户信息
     */
    IPage<EmployeeDO> page(EmployeeCondition condition);
}
